<#-- 用以动态加载的Pane -->
<#macro Pane id title="" style="" region="" minsize="" maxsize="" class="">
        <div id="${id}" style="border:0px;padding:0px;margin:0px;${style}" class="${class}" >
        	<#nested>
    	</div>
</#macro>

<#-- ActionMessages -->
<#macro ActionMessages>
    <#if actionMessages?? &&actionMessages?size gt 0>
        <div class="ActionMessagesImg">
            <div class="ActionMessages">
                <#list actionMessages as msg>
                    <#if msg??>${msg?html}<br></#if>
                </#list>
            </div>
        </div>
    </#if>
</#macro>

<#-- ActionErrors -->
<#macro ActionErrors fields=false>
    <#if actionErrors?? && actionErrors?size gt 0>
        <div class="ActionErrorsImg">
            <div class="ActionErrors">
                <#list actionErrors as msg>
                    <#if msg??>${msg?html}<br></#if>
                </#list>
            </div>
        </div>
    </#if>
    <#if fields><@FieldError/></#if>
</#macro>

<#-- A -->
<#macro @ href target="" onclick="" style="" cache=false >
    <#if target=="#"||target=="/">
        <A href="${href}" onclick="${onclick}"
    <#else>
        <A href="#" onclick="${onclick};<@LoadUrl href=href target=target cache=cache/>;return false"
    </#if>
        <#if style!="">style="${style}"</#if>><#nested></A>
</#macro>

<#-- LoadUrl -->
<#macro LoadUrl href target params="{}" cache=false><#if href!="">base.post('${href?js_string}'<#if target=="">${CurrentTarget()}<#else>,'${target}'</#if>,${params});</#if></#macro>

<#-- Contained -->
<#macro Contained href>${href}<#if href?contains("?")>&<#else>?</#if>_target_=Container</#macro>

<#-- Target -->
<#macro Target current>
    ${CurrentTarget(current)}
    <#nested>
    ${CurrentTarget(current, 'pop')}
</#macro>